package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:26 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class WorkspaceScmConfig implements java.io.Serializable {

  public WorkspaceScmConfig() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long workspaceId;

  /** Attribute workspaceId Be Seted Falg */
  private boolean workspaceIdSetted = false;

  /** Attribute workspaceId is Null Falg */
  private boolean workspaceIdNull = false;

  /**
   * Get workspaceId
   *
   * @return long
   */
  public final long getWorkspaceId() {

    return workspaceId;
  }

  /**
   * Set workspaceId
   *
   * @param long
   */
  public final void setWorkspaceId(long workspaceId) {

    this.workspaceId = workspaceId;

    this.workspaceIdSetted = true;

    this.setWorkspaceIdNull(false);
  }

  /**
   * Get workspaceId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceIdSetted() {
    return this.workspaceIdSetted;
  }

  /** Set workspaceId Null */
  public final void setWorkspaceIdNull() {

    this.workspaceIdNull = true;
  }

  public final void setWorkspaceIdNull(boolean aNullFlag) {

    this.workspaceIdNull = aNullFlag;
  }

  public final boolean isWorkspaceIdNull() {

    return this.workspaceIdNull;
  }

  private String scmType;

  /** Attribute scmType Be Seted Falg */
  private boolean scmTypeSetted = false;

  /** Attribute scmType is Null Falg */
  private boolean scmTypeNull = false;

  /**
   * Get scmType
   *
   * @return String
   */
  public final String getScmType() {

    if (isScmTypeNull()) {
      return null;
    } else {
      return StringUtils.trim(scmType);
    }
  }

  /**
   * Set scmType
   *
   * @param String
   */
  public final void setScmType(String scmType) {

    this.scmType = StringUtils.trim(scmType);

    this.scmTypeSetted = true;

    this.setScmTypeNull(this.scmType == null);
  }

  /**
   * Get scmType Has Been Setted
   *
   * @return boolean
   */
  public final boolean isScmTypeSetted() {
    return this.scmTypeSetted;
  }

  /** Set scmType Null */
  public final void setScmTypeNull() {

    this.scmTypeNull = true;
  }

  public final void setScmTypeNull(boolean aNullFlag) {

    this.scmTypeNull = aNullFlag;
  }

  public final boolean isScmTypeNull() {

    return this.scmTypeNull;
  }

  private String protocol;

  /** Attribute protocol Be Seted Falg */
  private boolean protocolSetted = false;

  /** Attribute protocol is Null Falg */
  private boolean protocolNull = false;

  /**
   * Get protocol
   *
   * @return String
   */
  public final String getProtocol() {

    if (isProtocolNull()) {
      return null;
    } else {
      return StringUtils.trim(protocol);
    }
  }

  /**
   * Set protocol
   *
   * @param String
   */
  public final void setProtocol(String protocol) {

    this.protocol = StringUtils.trim(protocol);

    this.protocolSetted = true;

    this.setProtocolNull(this.protocol == null);
  }

  /**
   * Get protocol Has Been Setted
   *
   * @return boolean
   */
  public final boolean isProtocolSetted() {
    return this.protocolSetted;
  }

  /** Set protocol Null */
  public final void setProtocolNull() {

    this.protocolNull = true;
  }

  public final void setProtocolNull(boolean aNullFlag) {

    this.protocolNull = aNullFlag;
  }

  public final boolean isProtocolNull() {

    return this.protocolNull;
  }

  private String hostName;

  /** Attribute hostName Be Seted Falg */
  private boolean hostNameSetted = false;

  /** Attribute hostName is Null Falg */
  private boolean hostNameNull = false;

  /**
   * Get hostName
   *
   * @return String
   */
  public final String getHostName() {

    if (isHostNameNull()) {
      return null;
    } else {
      return StringUtils.trim(hostName);
    }
  }

  /**
   * Set hostName
   *
   * @param String
   */
  public final void setHostName(String hostName) {

    this.hostName = StringUtils.trim(hostName);

    this.hostNameSetted = true;

    this.setHostNameNull(this.hostName == null);
  }

  /**
   * Get hostName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isHostNameSetted() {
    return this.hostNameSetted;
  }

  /** Set hostName Null */
  public final void setHostNameNull() {

    this.hostNameNull = true;
  }

  public final void setHostNameNull(boolean aNullFlag) {

    this.hostNameNull = aNullFlag;
  }

  public final boolean isHostNameNull() {

    return this.hostNameNull;
  }

  private String hostPort;

  /** Attribute hostPort Be Seted Falg */
  private boolean hostPortSetted = false;

  /** Attribute hostPort is Null Falg */
  private boolean hostPortNull = false;

  /**
   * Get hostPort
   *
   * @return String
   */
  public final String getHostPort() {

    if (isHostPortNull()) {
      return null;
    } else {
      return StringUtils.trim(hostPort);
    }
  }

  /**
   * Set hostPort
   *
   * @param String
   */
  public final void setHostPort(String hostPort) {

    this.hostPort = StringUtils.trim(hostPort);

    this.hostPortSetted = true;

    this.setHostPortNull(this.hostPort == null);
  }

  /**
   * Get hostPort Has Been Setted
   *
   * @return boolean
   */
  public final boolean isHostPortSetted() {
    return this.hostPortSetted;
  }

  /** Set hostPort Null */
  public final void setHostPortNull() {

    this.hostPortNull = true;
  }

  public final void setHostPortNull(boolean aNullFlag) {

    this.hostPortNull = aNullFlag;
  }

  public final boolean isHostPortNull() {

    return this.hostPortNull;
  }

  private String module;

  /** Attribute module Be Seted Falg */
  private boolean moduleSetted = false;

  /** Attribute module is Null Falg */
  private boolean moduleNull = false;

  /**
   * Get module
   *
   * @return String
   */
  public final String getModule() {

    if (isModuleNull()) {
      return null;
    } else {
      return StringUtils.trim(module);
    }
  }

  /**
   * Set module
   *
   * @param String
   */
  public final void setModule(String module) {

    this.module = StringUtils.trim(module);

    this.moduleSetted = true;

    this.setModuleNull(this.module == null);
  }

  /**
   * Get module Has Been Setted
   *
   * @return boolean
   */
  public final boolean isModuleSetted() {
    return this.moduleSetted;
  }

  /** Set module Null */
  public final void setModuleNull() {

    this.moduleNull = true;
  }

  public final void setModuleNull(boolean aNullFlag) {

    this.moduleNull = aNullFlag;
  }

  public final boolean isModuleNull() {

    return this.moduleNull;
  }

  private String scmUser;

  /** Attribute scmUser Be Seted Falg */
  private boolean scmUserSetted = false;

  /** Attribute scmUser is Null Falg */
  private boolean scmUserNull = false;

  /**
   * Get scmUser
   *
   * @return String
   */
  public final String getScmUser() {

    if (isScmUserNull()) {
      return null;
    } else {
      return StringUtils.trim(scmUser);
    }
  }

  /**
   * Set scmUser
   *
   * @param String
   */
  public final void setScmUser(String scmUser) {

    this.scmUser = StringUtils.trim(scmUser);

    this.scmUserSetted = true;

    this.setScmUserNull(this.scmUser == null);
  }

  /**
   * Get scmUser Has Been Setted
   *
   * @return boolean
   */
  public final boolean isScmUserSetted() {
    return this.scmUserSetted;
  }

  /** Set scmUser Null */
  public final void setScmUserNull() {

    this.scmUserNull = true;
  }

  public final void setScmUserNull(boolean aNullFlag) {

    this.scmUserNull = aNullFlag;
  }

  public final boolean isScmUserNull() {

    return this.scmUserNull;
  }

  private String scmPassword;

  /** Attribute scmPassword Be Seted Falg */
  private boolean scmPasswordSetted = false;

  /** Attribute scmPassword is Null Falg */
  private boolean scmPasswordNull = false;

  /**
   * Get scmPassword
   *
   * @return String
   */
  public final String getScmPassword() {

    if (isScmPasswordNull()) {
      return null;
    } else {
      return StringUtils.trim(scmPassword);
    }
  }

  /**
   * Set scmPassword
   *
   * @param String
   */
  public final void setScmPassword(String scmPassword) {

    this.scmPassword = StringUtils.trim(scmPassword);

    this.scmPasswordSetted = true;

    this.setScmPasswordNull(this.scmPassword == null);
  }

  /**
   * Get scmPassword Has Been Setted
   *
   * @return boolean
   */
  public final boolean isScmPasswordSetted() {
    return this.scmPasswordSetted;
  }

  /** Set scmPassword Null */
  public final void setScmPasswordNull() {

    this.scmPasswordNull = true;
  }

  public final void setScmPasswordNull(boolean aNullFlag) {

    this.scmPasswordNull = aNullFlag;
  }

  public final boolean isScmPasswordNull() {

    return this.scmPasswordNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String remarks;

  /** Attribute remarks Be Seted Falg */
  private boolean remarksSetted = false;

  /** Attribute remarks is Null Falg */
  private boolean remarksNull = false;

  /**
   * Get remarks
   *
   * @return String
   */
  public final String getRemarks() {

    if (isRemarksNull()) {
      return null;
    } else {
      return StringUtils.trim(remarks);
    }
  }

  /**
   * Set remarks
   *
   * @param String
   */
  public final void setRemarks(String remarks) {

    this.remarks = StringUtils.trim(remarks);

    this.remarksSetted = true;

    this.setRemarksNull(this.remarks == null);
  }

  /**
   * Get remarks Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRemarksSetted() {
    return this.remarksSetted;
  }

  /** Set remarks Null */
  public final void setRemarksNull() {

    this.remarksNull = true;
  }

  public final void setRemarksNull(boolean aNullFlag) {

    this.remarksNull = aNullFlag;
  }

  public final boolean isRemarksNull() {

    return this.remarksNull;
  }

  private String branch;

  /** Attribute branch Be Seted Falg */
  private boolean branchSetted = false;

  /** Attribute branch is Null Falg */
  private boolean branchNull = false;

  /**
   * Get branch
   *
   * @return String
   */
  public final String getBranch() {

    if (isBranchNull()) {
      return null;
    } else {
      return StringUtils.trim(branch);
    }
  }

  /**
   * Set branch
   *
   * @param String
   */
  public final void setBranch(String branch) {

    this.branch = StringUtils.trim(branch);

    this.branchSetted = true;

    this.setBranchNull(this.branch == null);
  }

  /**
   * Get branch Has Been Setted
   *
   * @return boolean
   */
  public final boolean isBranchSetted() {
    return this.branchSetted;
  }

  /** Set branch Null */
  public final void setBranchNull() {

    this.branchNull = true;
  }

  public final void setBranchNull(boolean aNullFlag) {

    this.branchNull = aNullFlag;
  }

  public final boolean isBranchNull() {

    return this.branchNull;
  }

  private String label;

  /** Attribute label Be Seted Falg */
  private boolean labelSetted = false;

  /** Attribute label is Null Falg */
  private boolean labelNull = false;

  /**
   * Get label
   *
   * @return String
   */
  public final String getLabel() {

    if (isLabelNull()) {
      return null;
    } else {
      return StringUtils.trim(label);
    }
  }

  /**
   * Set label
   *
   * @param String
   */
  public final void setLabel(String label) {

    this.label = StringUtils.trim(label);

    this.labelSetted = true;

    this.setLabelNull(this.label == null);
  }

  /**
   * Get label Has Been Setted
   *
   * @return boolean
   */
  public final boolean isLabelSetted() {
    return this.labelSetted;
  }

  /** Set label Null */
  public final void setLabelNull() {

    this.labelNull = true;
  }

  public final void setLabelNull(boolean aNullFlag) {

    this.labelNull = aNullFlag;
  }

  public final boolean isLabelNull() {

    return this.labelNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof WorkspaceScmConfig) == false) {
      return false;
    }
    WorkspaceScmConfig other = (WorkspaceScmConfig) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("workspaceId=");
    buffer.append(this.workspaceId);

    buffer.append("scmType=");
    buffer.append(this.scmType);

    buffer.append("protocol=");
    buffer.append(this.protocol);

    buffer.append("hostName=");
    buffer.append(this.hostName);

    buffer.append("hostPort=");
    buffer.append(this.hostPort);

    buffer.append("module=");
    buffer.append(this.module);

    buffer.append("scmUser=");
    buffer.append(this.scmUser);

    buffer.append("scmPassword=");
    buffer.append(this.scmPassword);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("remarks=");
    buffer.append(this.remarks);

    buffer.append("branch=");
    buffer.append(this.branch);

    buffer.append("label=");
    buffer.append(this.label);

    buffer.append("]");

    return buffer.toString();
  }
}
